Add Rust/Cargo unit test workflow with regression analysis#39
Merged
JamesonRGrieve merged 2 commits intomainfrom Dec 23, 2025
Merged
Add Rust/Cargo unit test workflow with regression analysis#39JamesonRGrieve merged 2 commits intomainfrom
JamesonRGrieve merged 2 commits intomainfrom
Conversation
- Create test-rs-cargo.yml: Reusable Rust test runner with: - Cargo test execution with JSON output parsing - Fallback to text output parsing for stable toolchain - Cgroup-aware worker auto-detection (matching pytest) - Compilation error detection before test run - Compatible artifact output format for regression analysis - Support for custom cargo test args and working directory - Update run-branch-test.yml: - Add Cargo.toml detection in framework detection step - Add rust-version input parameter - Add parallel test-source-cargo and test-target-cargo jobs - Add compare-cargo job using existing regression-test.yml - Add cargo-specific Discord notification on regressions - Add has_regressions_cargo and regression_count_cargo outputs
Resolved merge conflicts to include both: - Rust/Cargo test support (from this branch) - C++/CMake test support (from main) Both frameworks now run in parallel with pytest when detected.
JamesonRGrieve
added a commit
that referenced
this pull request
Dec 23, 2025
* Refactor Jest/Mocha workflows to match pytest runner structure - Refactored test-js-jest.yml to be a standalone reusable runner like test-py-pytest.yml with parallel workers support, cgroup-aware auto detection, collection error checking, and standardized outputs - Refactored test-js-mocha.yml similarly with parallel workers via --parallel --jobs flag, collection checking, and compatible outputs - Updated run-branch-test.yml to detect and run all three frameworks (pytest, Jest, Mocha) with proper regression analysis integration - Added aggregate-results job to combine regressions across frameworks - Unified notification handling for all detected test frameworks * Apply pytest improvements to storybook workflow (#41) - Add parallel_workers input with cgroup-aware auto-detection - Add smart caching for target branch results with pending marker pattern to avoid duplicate test runs across concurrent PRs - Add consistent outputs for regression analysis compatibility - Default to 6 workers for multithreaded runners, 1 for singlethreaded Co-authored-by: Claude <noreply@anthropic.com> * Standardize bandit workflow to match pytest patterns (#42) - Update action versions (checkout@v4.2.2, setup-python@v5.3.0) - Add consistent inputs: ref, python-version, artifact_name, severity_level - Rename target_branch_to_compare to target_branch for consistency - Add submodules checkout and standardize checkout configuration - Expand outputs: pr_issues_count, target_issues_count, new_issues_count, resolved_issues_count, has_regressions - Add artifact retention-days (3) and if-no-files-found settings - Improve regression detection with detailed issue reporting - Add resolved issues tracking and notification - Upload comparison artifacts for debugging Co-authored-by: Claude <noreply@anthropic.com> * Add Rust/Cargo unit test workflow with regression analysis (#39) - Create test-rs-cargo.yml: Reusable Rust test runner with: - Cargo test execution with JSON output parsing - Fallback to text output parsing for stable toolchain - Cgroup-aware worker auto-detection (matching pytest) - Compilation error detection before test run - Compatible artifact output format for regression analysis - Support for custom cargo test args and working directory - Update run-branch-test.yml: - Add Cargo.toml detection in framework detection step - Add rust-version input parameter - Add parallel test-source-cargo and test-target-cargo jobs - Add compare-cargo job using existing regression-test.yml - Add cargo-specific Discord notification on regressions - Add has_regressions_cargo and regression_count_cargo outputs Co-authored-by: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Create test-rs-cargo.yml: Reusable Rust test runner with:
Update run-branch-test.yml: